﻿#ifndef GUA_H
#define GUA_H

#include <QLabel>
#include <QPainter>
#include <QDebug>

class Gua : public QLabel
{
    Q_OBJECT
public:
    explicit Gua(QWidget *parent = nullptr);
    
    bool bruse;

    void setYao(bool yao1, bool yao2, bool yao3, bool yao4, bool yao5, bool yao6, int dong = 0);
    QString guaName();

private:
    void paintEvent(QPaintEvent *);

private:
    bool m_yao[6];
    int m_dong;
    
    int m_off; //间距 边距
    int m_w, m_w2, m_h;
    
signals:
    
public slots:
};

#endif // GUA_H
